<template>
  <div class="btuan">
    <div class="main" v-for="(item,index) in blist" :key=index>
    <img :src="pic" alt="">
    <div class="show">
        <h3>{{item.name}}</h3>
        <span>{{item.id}}</span>
        <span>{{item.min_price}}</span>
    </div>
    </div>
  </div>
</template>

<script>
import {tuanlist} from '../../utils/api'
let pic = 'https://img0.baidu.com/it/u=4194629432,1303297623&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500'

export default {
    data(){
        return{
            pic,
            blist:[]
        }
    },
    mounted(){
         tuanlist({status:0}).then((res)=>{
        this.blist = res.data.list
    })
    }
}
</script>

<style lang="scss" scoped>
 .btuan{
        width: 100%;
        height: 100vw;
    }
    .btuan .main{
        display: flex;
        margin-bottom: 2vw;
        // background: yellow;
        // padding: 20vw 0 0 7vw;
    }
    .btuan img{
        width: 30vw;
        height: 35vw;
        margin-right: 2vw;
    }
    .btuan .show{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 60vw;
        height: 35vw;
    }
</style>